using System;

namespace WorkLogger.Client {
	[Serializable]
	public class TimeSpanXml {
		public TimeSpanXml() {}

		public TimeSpanXml(TimeSpan time) {
			Hours = time.Hours;
			Minutes = time.Minutes;
		}

		public int Hours { get; set; }
		public int Minutes { get; set; }

		public TimeSpan GetTimeSpan() {
			return new TimeSpan(Hours, Minutes, 0);
		}
	}
}